from celery.result import AsyncResult
from celery_task import app

async_result = AsyncResult(id='4a8677e8-7867-414e-bb6f-019f46d0b24f', app=app)

if async_result.successful():
    result = async_result.get()
    print(result)
elif async_result.failed():
    print('任务执行失败')
elif async_result.status == 'STARTED':
    print('任务已经开始执行')
